import request from '@/utils/request'

//分页查询用户接口
export const getUserListAPI = (page, pageSize, username) => {
  return request.get('/admin/user/page', {
    params: {
      page,
      pageSize,
      username // 用于筛选，可选
    }
  })
}

//修改用户账号状态接口
//0封禁 1正常
export const updateUserStatusAPI = (id, status) => {
  return request.post(`/admin/user/status/${status}?id=${id}`)
}
